package NGUYENNGOCMINH.OOP.BAITAP01;

public class MODELS {
	
	public double PTB2(double a, double b, double c){
		double KQ = 0;
		double delta;
		if(a != 0){
			delta = b*b - 4*a*c;
			if(delta > 0){
				KQ = (-b + Math.sqrt(delta))/(2*a);
				KQ = (-b - Math.sqrt(delta))/(2*a);
			} else if(delta == 0) {
				KQ = (-b)/(2*a);
			} else{
				
			}
		}
		return KQ;
	}
}
